package com.fengye.eshop.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author fengyexjtu@126.com
 * @date 2022年05月16日 4:55 PM
 */
@FeignClient("product-service")
@Component
public interface ProductApi {

    @GetMapping("/product/{productId}")
    String getProductInfoById(@PathVariable(name = "productId") String productId);
}
